<?PHP
session_start();
unset($_SESSION['updateArray']);
?>
<TABLE width="100%" border="0" cellpadding="4" cellspacing="0" style="mainTableBGColor">
	<TR><TD valign="top" align="center">

<script language="JavaScript">
<!--
function formCheck(){
	if(document.form.name.value == ""){
	alert("Please enter a name to search!");
	document.form.name.focus();
	}else{
		document.form.submit();
	}
}
//-->
</script> 

<FORM name="form" action="formaction.php" method="post" enctype="multipart/form-data" onKeyPress="swallowEnter()">	
<TABLE border="1" width="625" cellpadding="0" cellspacing="0">
	<TR>
		<TD>

		<?PHP
	echo"
  	<table border=\"0\" width=\"100%\"  cellpadding=\"0\" cellspacing=\"0\">

		<TR>
			<TD class=\"blockHeader\">
			Search the Database for a Program:
			</TD>
		</TR>
		
		<TR>
			<TD class=\"blockDescription\">
			Enter the name or part of the name to search for.
			</TD>
		</TR>
		
		<TR>
			<TD>
							<table border=\"0\" width=\"100%\"  cellpadding=\"4\" cellspacing=\"0\">
				<TR  bgcolor=\"FFFFFF\">
					<TD class=\"formElementTextLeft\" style=\"padding-left:10px;\">";
					
					

							echo "Name to Search: <INPUT name=\"name\" type=\"text\" size=\"30\" onkeypress=\"return swallowEnter(event,this.form)\" >";

						
					echo"</TD><TD>";

							//echo "Field to Search: <select name=\"searchfield\" size=\"1\" ><option value=\"not_selected\">Select field to search:</option><option value=\"name\" selected>Underwriter Name</option><option value=\"abbreviation\">Abbreviation</option></select>";
						
					echo"</TD>
				</TR>
	</TABLE>
  			</TD>
		</TR>
  		
		<!--SUBMIT BUTTON-->
  		<TR>
			<TD bgcolor=\"#CCCCCC\" align=\"center\" style=\"padding-top:5px; padding-bottom:5px; \">
            <INPUT name=\"action\" type=\"hidden\" value=\"ProgramSearch\"><INPUT name=\"Submit\" type=\"button\" class=\"inputButton\"  value=\"Submit\" onClick=\"formCheck()\"> &nbsp; &nbsp; &nbsp; <INPUT name=\"Reset\" type=\"reset\" class=\"inputButton\" value=\"Reset\">			</TD>
		</TR>
		<!--END SUBMIT BUTTON-->
		  

  </TABLE>";

		?>
		
		
		</TD>
	</TR>				
</TABLE>
</FORM>		
	</TD></TR>
</TABLE>

